/*
 * Copyright (c) Jack魏 2023 - 2024, All Rights Reserved.
 */

package cn.jackwei.yiyi.mapper;

import cn.jackwei.yiyi.pojo.bean.SysUser;
import cn.jackwei.yiyi.pojo.query.SysUserQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 系统用户管理Mapper
 *
 * @author Jack魏
 * @since 2023/11/11
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据用户名查找是否存在
     *
     * @param account 登录名
     * @return 用户信息
     */
    SysUser selectByAccount(@Param("account") String account);

    /**
     * 根据条件查询用户信息
     *
     * @param query 条件
     * @return 用户信息
     */
    Page<SysUser> pageUser(SysUserQuery query);
}
